<?php
session_start();
if(!$_SESSION['username']){
 		header('Location:login.html');	
 }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link type="text/css" rel="stylesheet" href="styles/pdeditor.css" />
	<title>派代文本编辑器</title>
	<script type="text/javascript" src="scripts/jquery-1.7.js"></script>
	<script type="text/javascript" src="swfupload/swfupload.js"></script>
	<script type="text/javascript" src="scripts/pdeditor.js?v=0406"></script>
</head>
<body style="background:#f5f5f5;padding-top:30px;background:#f5f5f5;">
 	<div  id="pdmain">
 	<div style="height:40px;text-align:right;">
		<?php
	 		echo "<b>$_SESSION[username]</b>";
		?>
		&nbsp;&nbsp;<a href="my_articles.php" >已发表的文章</a>&nbsp;&nbsp;<a href="logout.php">退出</a>&nbsp;&nbsp;<a href="about.html" target="_blank">关于</a>	
	</div>
	<!-- -------------编辑器开始------------ //-->
	<div id="pdeditor_container" >
 			<div class="pdtitleborder">	
 				<input type="text" name="pdtitle" id="pdtitle" value='请输入帖子标题...'/>
 			</div>	
 			<div class="section">			
 				<div class="main_section">
 					<span>发表在：</span>
 					<a href="javascript:void(0);" class="selected_s">电商思想</a><a href="javascript:void(0);">C2C网商</a><a href="javascript:void(0);"> 推广合作</a><a href="javascript:void(0);">创业交流</a><a href="javascript:void(0);">外贸电商</a>
 				</div>	
 				<div class="other_section">
 					<a href="javascript:void(0);" id="other_btn" class="other_btn"></a>
 				</div>
 				<div class="clear"></div>
 				<div id="other_list"> 								
 					<ul>
 						<li>业界动态</li>
 						<li>市场营销</li>
 						<li>产品和体验</li>
 						<li>建议反馈</li>
 						<li>电商人才</li>
 					</ul>
 					<ul>
 						<li>闲聊灌水</li>
 						<li>求助问答</li>
 						<li>货源&amp;代理</li>
 						<li>疯狂购物</li>
 						<li>移动互联网</li>
 					</ul>
 					<ul>
 						<li>仓储物流</li>
 					</ul>				
 				</div>						
 			</div>	
 			<div class="iframeborder">
 				<iframe name="pdeditor" id="pdeditor" frameborder="none" ></iframe>
 				<div class="toolbar">
 					<div class="toolbar_left">
	 					<a href="javascript:void(0);"  id="pdbold"></a>
	 					<a href="javascript:void(0);"  id="swfuploadbtn"></a>
	 					<a href="javascript:void(0);"  id="insertvideo"></a>
	 					<div id="upload_bg">
	 						<div id="upload_color">
		 						<div id="upload_percent">
		 							<span id="upload_percent_num">0</span>% Complate
		 						</div>
		 					</div>
	 					</div>
	 					<span class="count_num"><b  id="count_num">0</b>/1500 受欢迎的字数</span>
 					</div>
 					<div class="toolbar_right">
 						<a href="javascript:void(0);" id="pdsubmit">发表</a>
 					</div>
 					<input type="hidden" id="pd_userdata" />					
 				</div>
 			</div>
			<div id="videopanel" >
	    		<p><a href="javascript:void(0);" id="cancelvideo"></a>粘贴视频地址 (&lt;embed&gt;标签或.swf格式) </p>
	    		<a href="javascript:void(0);" id="addvideo">确定</a>
	    		<div class="video_add_border"><input type="text" id="videoaddr"  /></div>
			</div>
</div>
	<!-- -------------编辑器结束------------ //-->
 	</div>	
</body>
</html>
